From: Richard M. Stallman Date: Sat, 28 Apr 2007 17:46:09 +0000 (+0000) Subject: (sh-mode): Recognize .profile as sh style. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~18985 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b45f0fbae97fcdc5baa7b02fe1f21b575450c6f7;p=emacs.git (sh-mode): Recognize .profile as sh style. --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 2db30ceb4b2..60fc4c43e7b 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -1530,6 +1530,8 @@ with your script for an edit-interpret-debug cycle." "ksh") ((string-match "[.]csh\\>" buffer-file-name) "csh") + ((equal (file-name-nondirectory buffer-file-name) ".profile") + "sh") (t sh-shell-file)) nil nil)